﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlScriptVault.Model
{
    [Serializable]
    public class AddFileHistory : IHistory
    {
        private readonly string _scriptName;
        private readonly string _scriptContent;

        public AddFileHistory(string scriptName, string scriptContent)
        {
            _scriptName = scriptName;
            _scriptContent = scriptContent;

            EventDate = DateTime.Now;
        }

        public DateTime EventDate { get; private set; }

        public string ImageName
        {
            get { return "../Images/File-New-icon.png"; }
        }

        public string EventName
        {
            get { return string.Format("Added file {0}", _scriptName); }
        }
    }
}
